import { DefaultLayout, ParentLayout } from '@/layout'
import type { Route } from '@/layout/components'

export default {
  path: '/recommend',
  name: 'Recommend',
  component: DefaultLayout,
  redirect: '/recommend/rdQuestionMange',
  meta: {
    title: '投诉与建议',
    icon: 'menu-question',
    sort: 9,
    alwaysShow: true,
    roles: ['投诉与建议']
  },
  children: [
    {
      path: 'rdQuestionMange',
      name: 'RdQuestionMange',
      meta: { title: '反馈记录', roles: ['反馈记录'] },
      component: () => import('@/views/recommend/questionMange')
    },
    {
      path: 'rdQuestionTemp',
      name: 'RdQuestionTemp',
      component: () => import('@/views/recommend/questionTemp'),
      meta: { title: '问题类型', roles: ['问题类型'] }
    }
  ]
} as Route
